/**
 * 
 */
package com.sip.scanadapter.factory.common;

import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;

/**
 * @author Dhanushka Ariyasingha.
 *
 */
public class ApplicationContextUtils implements ApplicationContextAware {

	private static ApplicationContext context;

	public void setApplicationContext(final ApplicationContext ctx) throws BeansException {
		context = ctx;

	}

	public static ApplicationContext getApplicationContext() {
		return context;
	}

}
